import request from '@/utils/request'
export const getBannerList = () => {
  return request({
    url: '/banner/list'
  })
}

export const addBanner = (params: { img: string, alt: string, link: string }) => {
  return request({
    url: '/banner/add',
    method: 'POST',
    data: params
  })
}


export const removeBanner = (params: { bannerid: string }) => {
  return request({
    url: '/banner/delete',
    data: params
  })
}

export const removeAllBanner = () => {
  return request({
    url: '/banner/removeAll'
  })
}
